<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- saved from url=(0025)http://vohshop.com/admin/ -->
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="vi" xml:lang="vi">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- saved from url=(0025)http://vohshop.com/admin/ -->
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="vi" xml:lang="vi">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title><?=isset($title) ? $title : 'Content Administration'?></title>
    <!--<base href="/admin/">-->
    <base href=".">
    <link rel="stylesheet" type="text/css" href="<?=$theme_path?>css/admin_stylesheet.css">
    <link rel="stylesheet" type="text/css" href="<?=$theme_path?>css/jquery-ui-1.8.16.custom.css">
    <!---->
    <script type="text/javascript" src="<?=$theme_path?>js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="<?=$theme_path?>js/jquery-ui-1.7.2.custom.min.js"></script>
    <script type="text/javascript" src="<?=$theme_path?>js/jquery.bgiframe-2.1.2.js"></script>
    <script type="text/javascript" src="<?=$theme_path?>js/tabs.js"></script>
    <script type="text/javascript" src="<?=$theme_path?>js/superfish.js"></script>
    <script type="text/javascript" src="<?=$theme_path?>plugin/tiny_mce/tiny_mce.js"></script>

    <!--    JSCROLLPANE PLUGIN -->
    <script type="text/javascript" src="<?=$theme_path?>plugin/jscrollpane/jScrollPane.js"></script>
    <link rel="stylesheet" type="text/css" href="<?=$theme_path?>plugin/jscrollpane/JSrollBar.css">

    <!--    DATEPICKER PLUGIN -->
    <link rel="stylesheet" href="<?=$theme_path?>plugin/datepicker/css/datepicker.css" type="text/css"/>
    <script type="text/javascript" src="<?=$theme_path?>plugin/datepicker/js/datepicker.js"></script>
    <script type="text/javascript" src="<?=$theme_path?>plugin/datepicker/js/eye.js"></script>
    <script type="text/javascript" src="<?=$theme_path?>plugin/datepicker/js/utils.js"></script>
    <script type="text/javascript" src="<?=$theme_path?>plugin/datepicker/js/layout.js?ver=1.0.2"></script>

    <script type="text/javascript">
        //-----------------------------------------
        // Confirm Actions (delete, uninstall)
        //-----------------------------------------
        $(document).ready(function () {
            // Confirm Delete
            $('#form, #form_detail').submit(function () {
                if ($(this).attr('action').indexOf('delete', 1) != -1) {
                    if (!confirm('Delete / Uninstall can not undo! Are you sure?')) {
                        return false;
                    }
                }
            });

            // Confirm Uninstall
            $('a').click(function () {
                if ($(this).attr('href') != null && ($(this).attr('href').indexOf('uninstall', 1) != -1 || $(this).attr('button_type') == 'delete')) {
                    if (!confirm('Delete / Uninstall can not undo! Are you sure?')) {
                        return false;
                    }
                }
            });

        });
    </script>

    <? if ($can_apply_tinymce) { ?>
    <script type="text/javascript">
        tinyMCE.init({
            // General options
            mode : "textareas",
            theme : "advanced",
            plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",

            // Theme options
            theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
            theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
            theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
            theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",
            theme_advanced_statusbar_location : "bottom",
            theme_advanced_resizing : true,

            // Skin options
            skin : "o2k7",
            skin_variant : "silver",

            // Example content CSS (should be your site CSS)
            content_css : "css/example.css",

            // Drop lists for link/image/media/template dialogs
            template_external_list_url : "js/template_list.js",
            external_link_list_url : "js/link_list.js",
            external_image_list_url : "js/image_list.js",
            media_external_list_url : "js/media_list.js",

            // Replace values for the template plugin
            template_replace_values : {
                username : "Some User",
                staffid : "991234"
            }
        });
    </script>
    <? } ?>
</head>
<body>
<div id="container">
    <?if(isset($show_menu) && $show_menu == true){?>
    <div id="header">
        <div class="div1">
            <div class="div2"><img src="<?=$theme_path?>images/admin/logo.png" title="Quản trị cửa hàng"></div>
        </div>
        <div id="menu">
            <!----------SHOW MENU------------>
            <ul class="left sf-js-enabled" style="display: block; width: 100% ">
                <?php foreach($menu_item as $menu): ?>
                <?php if(count($menu) > 1): ?>
                    <li>
                        <a class="top" href="<?php echo $menu['item1']['url'] ?>"><?php echo $menu['item1']['title'] ?></a>
                        <ul style="display: none; visibility: hidden;">
                            <?php for($i=2 ; $i<=count($menu) ; $i++): ?>
                            <li>
                                <a class="top" href="<?php echo $menu['item'.$i]['url'] ?>"><?php echo $menu['item'.$i]['title'] ?></a>
                            </li>
                            <?php endfor ?>
                        </ul>
                    </li>

                    <?php else: ?>
                    <li>
                        <a class="top" href="<?php echo $menu['item1']['url'] ?>"><?php echo $menu['item1']['title'] ?></a>
                    </li>
                    <?php endif ?>
                <?php endforeach ?>
            </ul>
            <!----------END MENU------------>
            <script type="text/javascript">
                $(document).ready(function () {

                    $('#menu > ul').superfish({
                        hoverClass:'sfHover',
                        pathClass:'overideThisToUse',
                        delay:0,
                        animation:{height:'show'},
                        speed:'normal',
                        autoArrows:false,
                        dropShadows:false,
                        disableHI:false, /* set to true to disable hoverIntent detection */
                        onInit:function () {
                        },
                        onBeforeShow:function () {
                        },
                        onShow:function () {
                        },
                        onHide:function () {
                        }
                    });
                    $('#menu > ul').css('display', 'block');
                });

                function getURLVar(urlVarName) {
                    var urlHalves = String(document.location).toLowerCase().split('?');
                    var urlVarValue = '';

                    if (urlHalves[1]) {
                        var urlVars = urlHalves[1].split('&');

                        for (var i = 0; i <= (urlVars.length); i++) {
                            if (urlVars[i]) {
                                var urlVarPair = urlVars[i].split('=');

                                if (urlVarPair[0] && urlVarPair[0] == urlVarName.toLowerCase()) {
                                    urlVarValue = urlVarPair[1];
                                }
                            }
                        }
                    }

                    return urlVarValue;
                }

                $(document).ready(function () {
                    route = getURLVar('route');

                    if (!route) {
                        $('#dashboard').addClass('selected');
                    } else {
                        part = route.split('/');

                        url = part[0];

                        if (part[1]) {
                            url += '/' + part[1];
                        }

                        $('a[href*=\'' + url + '\']').parents('li[id]').addClass('selected');
                    }
                });
                //--></script>
        </div>
    </div>
    <?}?>
    <div id="content">